package juc;

public class ParentDemo {

    private String name;
    private String age;

    public ParentDemo() {
    }

    public ParentDemo(String name) {
        this.name = name;
        System.out.println(name);
    }

    public Long test1() {
        System.out.println("test1");
        return 100L;
    }

    public static void test2() {
        System.out.println("test2");
    }

    public final void test3() {
        System.out.println("test3");
    }

    private void test4() {
        System.out.println("test4");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
